using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AutoClip : MonoBehaviour
{   
    public SpriteRenderer sprite;
    public Rigidbody2D rb;
    private void FixedUpdate() {
        if(rb.velocity.x > 0){
            sprite.flipX = false;
        }else if(rb.velocity.x < 0){
            sprite.flipX = true;
        }
    }
}
